<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>首页--layui后台管理模板 2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="../css/public.css" media="all" />
</head>
<style type="text/css">
    .table_news span {
        display: inline-block;
        width: 23%;
    }
</style>

<body class="childrenBody">
    <blockquote class="layui-elem-quote layui-bg-green">
        <div id="nowTime"></div>
    </blockquote>
    <!-- <div class="layui-row layui-col-space10 panel_box"> -->
    <!-- <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg2">
            <a href="javascript:;" data-url="http://fly.layui.com/case/u/3198216" target="_blank">
                <div class="panel_icon layui-bg-green">
                    <i class="layui-anim seraph icon-good"></i>
                </div>
                <div class="panel_word">
                    <span>为我点赞</span>
                    <cite>点赞地址链接</cite>
                </div>
            </a>
        </div>
        <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg2">
            <a href="javascript:;" data-url="https://github.com/BrotherMa/layuicms2.0" target="_blank">
                <div class="panel_icon layui-bg-black">
                    <i class="layui-anim seraph icon-github"></i>
                </div>
                <div class="panel_word">
                    <span>Github</span>
                    <cite>模版下载链接</cite>
                </div>
            </a>
        </div>
        <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg2">
            <a href="javascript:;" data-url="https://gitee.com/layuicms/layuicms2.0" target="_blank">
                <div class="panel_icon layui-bg-red">
                    <i class="layui-anim seraph icon-oschina"></i>
                </div>
                <div class="panel_word">
                    <span>码云</span>
                    <cite>模版下载链接</cite>
                </div>
            </a>
        </div> -->
    <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg2">
        <!-- <a href="javascript:;" data-url="page/user/userList.html"> -->
        <div class="panel_icon layui-bg-orange">
            <i class="layui-anim seraph icon-icon10" data-icon="icon-icon10"></i>
        </div>
        <div class="panel_word userAll">
            <span class="userNum">0</span>
            <em>用户总数</em>
            <cite class="layui-hide">用户中心</cite>
        </div>
        <!-- </a> -->
    </div>
    <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg2">
        <!-- <a href="javascript:;" data-url="page/recruits/recruiList.html"> -->
        <div class="panel_icon layui-bg-green">
            <i class="layui-anim layui-icon" data-icon="&#xe634;">&#xe634;</i>
        </div>
        <div class="panel_word outIcons">
            <span class="lunbo">0</span>
            <em>轮播图</em>
            <cite class="layui-hide">轮播图</cite>
        </div>
        <!-- </a> -->
    </div>
    <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg2">
        <!-- <a href="javascript:;" data-url="https://gitee.com/layuicms/layuicms2.0" target="_blank"> -->
        <div class="panel_icon layui-bg-red">
            <i class="layui-anim seraph icon-ziliao"></i>
        </div>
        <div class="panel_word">
            <span class="zhaopinNum">0</span>
            <em>招聘发布个数</em>
            <cite class="layui-hide">招聘</cite>
        </div>
        <!-- </a> -->
    </div>
    <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg2">
        <!-- <a href="javascript:;"> -->
        <div class="panel_icon layui-bg-blue">
            <i class="layui-anim seraph icon-clock"></i>
        </div>
        <div class="panel_word">
            <span class="loginTime"></span>
            <cite>上次登录时间</cite>
        </div>
        <!-- </a> -->
    </div>
    </div>
    <blockquote class="layui-elem-quote main_btn">
        <!-- <p>本模板基于Layui2.*实现，支持除LayIM外所有的Layui组件。<a href="http://layim.layui.com/#getAuth" target="_blank" class="layui-btn layui-btn-xs">获取LayIM授权</a>　layui开发文档地址：<a class="layui-btn layui-btn-xs layui-btn-danger" target="_blank" href="http://www.layui.com/doc">layui文档</a>　千人技术交流QQ群：<a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=8b7dd3ea73528c1e46c5d4e522426d60deed355caefdf481c1eacdd1b7b73bfd"><img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="layui后台管理模版" title="layui后台管理模版"></a>（添加时请注明来源，如：“码云”、“github”等）</p>
		<p class="layui-red">郑重提示：本模版作为学习交流免费使用【强烈要求付费或者捐赠的我也就默默的接受了😄】，如需用作商业用途，请联系作者购买【本模版已进行作品版权证明，不管以何种形式获取的源码，请勿进行出售或者上传到任何素材网站，否则将追究相应的责任】</p>
		<p>注：本模版未引入任何第三方组件，单纯的layui+js实现的各种功能。网站所有数据均为静态数据，无数据库，除打开的窗口和部分小改动外所有操作刷新后无效，关闭窗口或清除缓存后，所有操作无效，请知悉。</p>
		<p class="layui-blue">PS：这只是模版而不是定制开发，不能覆盖升级很正常，请不要因为不能覆盖升级来喷我，我表示很无辜，谢谢大家</p> -->
    </blockquote>
    <div class="layui-row layui-col-space10">
        <div class="layui-col-lg6 layui-col-md12">
            <blockquote class="layui-elem-quote title">系统基本参数</blockquote>
            <table class="layui-table magt0">
                <colgroup>
                    <col width="150">
                    <col>
                </colgroup>
                <tbody>
                    <tr>
                        <td>当前版本</td>
                        <td class="version"></td>
                    </tr>
                    <tr>
                        <td>版权归属</td>
                        <td class="author"></td>
                    </tr>
                    <tr>
                        <td>网站首页</td>
                        <td class="homePage"></td>
                    </tr>
                    <tr>
                        <td>服务器环境</td>
                        <td class="server"></td>
                    </tr>
                    <tr>
                        <td>数据库版本</td>
                        <td class="dataBase"></td>
                    </tr>
                    <tr>
                        <td>最大上传限制</td>
                        <td class="maxUpload"></td>
                    </tr>
                    <!-- <tr>
                        <td>当前用户权限</td>
                        <td class="userRights"></td>
                    </tr> -->
                </tbody>
            </table>
            <blockquote class="layui-elem-quote title">最新招聘信息 <i class="layui-icon layui-red">&#xe756;</i></blockquote>
            <!--<table class="layui-table mag0" lay-skin="line">
                <colgroup>
                    <col> 物流猎头后台管理系统
                    <col width="110">
                </colgroup>
                <tbody class="hot_news"></tbody>
            </table>-->

            <div class="layui-elem-quote layui-quote-nm history_box magb0" style="height: 200px;">
                <div class="table_news" style="width: 100%;height: 30px;background: #DEDEDE;line-height: 30px;text-align: center;">
                    <span>招聘职位</span>
                    <span>招聘信息标题</span>
                    <span>公司名称</span>
                    <span>发布时间</span>
                </div>
                <div id="list_news">
                    <!--招聘列表-->
                </div>
            </div>

        </div>
        <div class="layui-col-lg6 layui-col-md12">
            <blockquote class="layui-elem-quote title">发展历程&更新日志</blockquote>
            <div class="layui-elem-quote layui-quote-nm history_box magb0">
                <ul class="layui-timeline">
                    <li class="layui-timeline-item">
                        <i class="layui-icon layui-timeline-axis">&#xe756;</i>
                        <div class="layui-timeline-content layui-text">
                            <div class="layui-timeline-title">
                                <h3 class="layui-inline">物流猎头后台管理系统<span class="layui-red">第一期</span>发布　</h3>
                                <span class="layui-badge-rim">2018-xx-xx</span>
                            </div>

                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>

    <script type="text/javascript" src="../layui/layui.js"></script>
    <!-- <script src="../js/cache.js"></script> -->
    <script type="text/javascript" src="../js/main.js"></script>

    <script type="text/javascript" src="../js/common.js"></script>
    <script src="../js/jquery.js"></script>


</body>
<script>
    $(document).ready(function() {


        console.log("woshishui");
        // 18566666666
        // $.post(severUrl + "get_my_manager_by_tel", {
        //         tel: window.sessionStorage.getItem("user_name")
        //     }, function(res) {
        //         console.log("woshinidegege");
        //         console.log(res);
        //         userInfos = res.data
        //         localStorage.setItem("userInfo", JSON.stringify(userInfos));
        //         // console.log(localStorage.getItem("userInfo"))

        //     })
        //	用户总数  招聘个数接口
        $.ajax({
            url: severUrl + 'get_recruit_data',
            type: "post",
            dataType: "json",
            success: function(data) {
                // console.log("jjdjjdjjcjdjj");
                // console.log(data)
                $(".zhaopinNum").text(data.my_count);
            }
        });
        $(".loginTime").html(newDate.split("日")[0] + "日</br>" + newDate.split("日")[1]);

        $.ajax({
            url: severUrl + 'get_user_data',
            type: "post",
            dataType: "json",
            success: function(data) {
                console.log("0000");
                console.log(data)
                $(".userNum").text(data.my_count);
            }
        });
        $.ajax({
            url: severUrl + 'get_lunbo_data',
            type: "post",
            dataType: "json",
            success: function(data) {
                console.log("0000");
                console.log(data)
                $(".lunbo").text(data.my_count);
            }
        });
        // 最新招聘信息  接口 staute == 1
        $.ajax({
            url: severUrl + 'get_recruit_data',
            type: "post",
            data: {
                page: 1
            },
            dataType: "json",
            success: function(data) {
                console.log(data);
                var html = '';
                for (var key in data.data) {
                    if (data.data[key].status == 1) {
                        //					console.log(data.data[key])
                        html += '<div class="table_news" style="width: 100%;height: 40px;border-bottom:1px dashed #C2C2C2 ;line-height: 40px;text-align: center;">' +
                            '<span class="job_position">' + data.data[key].job_position + '</span> ' +
                            '<span class="title">' + data.data[key].title + '</span> ' +
                            '<span class="company">' + data.data[key].company + '</span> ' +
                            '<span class="release_time">' + timestampToTime(data.data[key].release_time) + '</span>' +
                            '</div>';
                    }
                }
                $('#list_news').append(html)
            }
        });

        function timestampToTime(timestamp) {
            var date = new Date(timestamp * 1000); //时间戳为10位需*1000，时间戳为13位的话不需乘1000
            var Y = date.getFullYear() + '-';
            var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
            var D = date.getDate() + ' ';
            var h = date.getHours() + ':';
            var m = date.getMinutes() + ':';
            var s = date.getSeconds();
            return Y + M + D + h + m + s;
        }


    })
</script>

</html>